import request from '@/utils/axios';

interface IResponseType<P = {}> {
    code?: number;
    msg: string;
    data: P;
}

export const list = ()=>{
    return request<IResponseType>({
        url: '/picture/list',
        method: 'get'
    })
}
export const famous = ()=>{
    return request<IResponseType>({
        url: '/famous/list',
        method: 'get',
        params: {pageNum: 1, pageSize: 8}
    })
}
export default { list,famous };